package com.pushworld.grc.post.ui.interceptor;

import cn.com.infostrategy.ui.mdata.BillListPanel;
import cn.com.infostrategy.ui.mdata.BillTreePanel;
import cn.com.infostrategy.ui.mdata.BillTreeSelectListener;
import cn.com.infostrategy.ui.mdata.BillTreeSelectionEvent;
import cn.com.infostrategy.ui.mdata.styletemplet.t0A.AbstractStyleWorkPanel_0A;
import cn.com.infostrategy.ui.mdata.styletemplet.t0A.IUIIntercept_0A;

public class Ic_DeptPost_Edit implements IUIIntercept_0A,BillTreeSelectListener{

	
	
	private BillListPanel list;
	private BillTreePanel tree;
	public void afterSysInitialize(AbstractStyleWorkPanel_0A _panel)
			throws Exception {
		
		
		list=_panel.getBillListPanelByTempletCode("pub_post_edit1001");
		tree=_panel.getBillTreePanelByTempletCode("pub_corp_dept_CODE1");
		tree.queryDataByCondition(null);
		tree.addBillTreeSelectListener(this);
		
		
		
	}
	public void onBillTreeSelectChanged(BillTreeSelectionEvent _event) {
		list.clearTable();
		list.QueryDataByCondition("deptid='"+tree.getSelectedVO().getStringValue("id")+"'");
	}

}
